package com.atguigu.common.exception;

//公共异常枚举类
public enum BizCodeEnum {
    UNKOWN_EXCEPTION(10000,"未知异常"),
    VAILDE_EXCEPTIPN(10001,"参数格式校验异常"),
    SMSCODE_EXCEPTIPN(10002,"验证码获取频率太高，请稍后再试"),
    PRODUCT_EXCEPTION(11000,"商品上架异常"),
    USERNAME_EXIST_EXCEPTION(10003,"用户名已存在"),
    PHONE_EXIST_EXCEPTION(10004,"手机号已存在"),
    LOGINACCT_PASSWORD_INVALID_EXCEPTION(10005,"用户名或密码错误"),
    ORDER_WARE_STOCK_EXCEPTION(10006,"锁定库存失败");


    private Integer code;
    private String msg;

    BizCodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
